function chartOption(valueOne,valueTwo){
  var markPointData = [];
  for(var i=0;i<5;i++){
    var valueData = {coord:[i+1,valueOne[i+1]]};
    markPointData.push(valueData)
  }
  console.log(valueOne[5]);
  option = {
      backgroundColor: 'rgba(239,239,239,1)',
      tooltip: {
          trigger: 'axis',
          triggerOn:'mousemove', //click

          axisPointer: {
              lineStyle: {
                  color: '#57617B',
                  width:0,
              }
          },
          textStyle:{
            fontSize:12,
          },
          formatter:function(params,ticket){
            if(params[0]){
              if(params[0].dataIndex == 0 || params[0].dataIndex == 6) return ''
                if(params[0].value  && params[1].value){
                    return '当前产品收益'+params[0].value +'%<br>'+'当前平均收益'+params[1].value+'%'
                }
                else if(!params[0].value){
                    return '当前产品收益'+' --'+'<br>'+'当前平均收益'+params[1].value+'%'
                }
                else if(!params[1].value){
                    return '当前产品收益'+params[0].value +'%<br>'+'当前平均收益'+' --'
                }
            }
          },
      },
      legend: {
          itemWidth: 16,
          itemHeight:6,
          itemGap:4,
          data: ['当前产品收益', '当前平均收益'],
          right: '5%',
          bottom:'15%',
          orient:'vertical',
          textStyle: {
              fontSize: 10,
              color: '#4d4d4d'
          }
      },
      grid: {
          left: '0%',
          right: '0%',
          bottom: '3%',
          top:'0%',
          containLabel: true
      },
      xAxis: [{
          // name:'风险',
          // nameLocation:'middle',
          // nameGap:6,
          type: 'category',
          boundaryGap: false,
          axisLine: {
            show: false,
          },
          axisTick: {
            show:false,
          },
          axisLabel: {
            textStyle:{
              fontSize:10,
              color:'#333'
            }
          },
          data: ['','谨慎型','稳健型','平衡型','进取型','激进型','']
      }],
      yAxis: [{
          type: 'value',
          splitNumber:11,
          axisTick: {
              show: true,
              inside:true,
              lineStyle:{
                color:'#8e8e8e'
              }
          },
          axisLine: {
            show:false
          },
          axisLabel: {
              margin:4,
              inside:true,
              textStyle: {
                  fontSize:10
              },
              formatter: function (value, index) {
                  if(value == 0) return '';
                  if (index%5 != 0) {
                      return '';
                  }
                  return value +'%';
              }
          },
          splitLine: {
            show:false
          },
          splitArea:{
            interval:1,
            show:true,
            areaStyle:{
              color :['rgba(232,232,232,1)','rgba(239,239,239,1)']
            }
          },
          max:valueOne[5]+3,
      }],
      series: [{
          name: '精选产品收益',
          type: 'line',
          // symbol:'none',
          data: valueOne, // [,5.0,5.6,7.6,8.9,14.6,,]
          //smooth: true,
          lineStyle: {
              normal: {
                  width: 1
              }
          },

          markPoint : {
            symbolSize:40,
            /*itemStyle:{
              normal:{
                color:'#ff0000'
              }
            },*/
            itemStyle:{
                normal:{
                  color:'#ff0000'
                },
                emphasis:{
                    color :'#ff0000',
                    shadowColor: '#ff0000',
                    shadowBlur: 30,
                },
             },
            data : markPointData,
            label:{
              normal:{
                show:true,
                position:'inside',
                formatter:function(str){
                   str.dataIndex = str.dataIndex+1
                   return 'B'+str.dataIndex
                }
              }
            }
          },
          label:{
            normal:{
              show:true,
              position:'insideBottomRight',
              offset:[-10,10],
              textStyle:{
                color:'rgba(255,94,7,1)'
              },
              formatter:function(params){
                if(params.dataIndex == 5){
                  return (params.data).toFixed(2)+'%'
                }else {
                  return ''
                }
              }
            }
          },
          itemStyle: {
              normal: {
                  color: 'rgba(255,94,7,1)',
                  borderWidth:1,
                  borderColor:'#ff0000',
                  shadowBlur:2,
                  shadowColor:'rgba(255,94,7,1)',
                  shadowOffsetX:0,
                  shadowOffsetY:0,
              }
          },


      }, {
          name: '市场平均收益',
          type: 'line',
          smooth: true,
          lineStyle: {
              normal: {
                  width: 1
              }
          },
          areaStyle: {
              normal: {
                  color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                      offset: .1,
                      color: 'rgba(0, 136, 212, 0.3)'
                  }, {
                      offset: .9,
                      color: 'rgba(0, 136, 212, 0)'
                  }], false),
                  shadowColor: 'rgba(0, 0, 0, 0.1)',
                  shadowBlur: 10
              }
          },
          label:{
            normal:{
              show:true,
              position:'bottom',
              offset:[10,0],
              textStyle:{
                color:'#005d9e'
              },
              formatter:function(params){
                if(params.dataIndex == 3){
                  return (params.data).toFixed(2)+'%'
                }else {
                  return ''
                }
              }
            }
          },
          itemStyle: {
              normal: {
                  color: 'rgb(10,41,93)'
              }
          },
          data: valueTwo, //[0,4.5,5.0,6.6,7.6,9.1,13.0,]
      } ]
  };
  return option
}
